package com.vcourse.cloud.vod.service;

import com.aliyuncs.exceptions.ClientException;

import java.io.InputStream;
import java.util.List;

/**
 * @author Zengsh123
 * @date 2020-06-16 20:43
 */
public interface VideoService {
    /**
     * 上传视频
     */
    String uploadVideo(InputStream file, String originalFilename);

    /**
     * 删除视频
     */
    void removeVideo(String videoId) throws ClientException;

    /**
     * 批量删除视频
     */
    void removeVideoByIdList(List<String> videoIdList) throws ClientException;

    /**
     * 获取视频播放凭证
     */
    String getPlayAuth(String videoSourceId) throws ClientException;
}
